package com.changanw.askforleavedemo.mapper;

import com.changanw.askforleavedemo.model.Role;
import com.changanw.askforleavedemo.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author changanw
 * @description
 * @date 2023/11/10 9:00
 */
@Mapper
public interface UserMapper {
  User loadUserByUsername(String username);

  List<Role> getUserRolesByUserId(Integer id);

  List<User> getAllUsersExcludeCurrent(String name);
}
